<div id="container">
<section id="content">
<script>
	function func_back(subId){
		$("#main_form").prop("action", "edit");
		$("#hidIsBack").val('1');
		return $("#main_form").submit();
	}

	function func_submit(){
		return $("#main_form").submit();        
	}

</script>


	<form id="main_form" method="post" action="registEdit">
	<input type="hidden" id="hidIsBack" name="isBack" value=""/>
	<input type="hidden" id="hidId" name="id" value="<?php echo $id;?>"/>
	<input type="hidden" id="hidSubId" name="subId" value="<?php echo $subId;?>">
	<input type="hidden" id="hidTitle" name="title" value="<?php echo $title;?>"/>
	<input type="hidden" id="hidYoutubId" name="youtubeId" value="<?php echo $youtubeId;?>"/>
	<input type="hidden" id="hidDesript" name="descript" value="<?php echo $descript;?>"/>
	<center>
		<H1>Cập Nhật Video</H1>
	</center>

	<table id="edit_table">
		<tr>
			<td class="edit_column" width="170">Tiêu Đề</td>
			<td style="text-align: left;">
				<?php echo html_entity_decode($title, ENT_QUOTES, 'utf-8');?>
			</td>
		</tr>
		<tr>
			<td class="edit_column">Mã Youtube</td>
			<td>
				<?php echo $youtubeId;?>
			</td>
		</tr>
		<tr>
			<td class="edit_column" style="vertical-align: top;">Mô tả</td>
			<td style="text-align: left;">
				<textarea style="width: 99%;" rows="20" name="descript" id="txtDescript" disabled><?php echo html_entity_decode($descript, ENT_QUOTES, 'utf-8'); ?></textarea>
			</td>
		</tr>
		<tr>
			<td colspan="2" style="text-align: center;">
				<button type="submit">Hoàn Tất</button>
				<button type="button" onclick="func_back()" style="margin-left: 10px;">Quay Lại</button>
			</td>
		</tr>
	</table>
	</form>
</section>
</div>
